package com.extraxue.abstractFactory;


//继承自AbstractFactory，专门用来生产现代的食物、武器、交通工具
public class ModernFactory extends AbstractFactory {
    @Override
    Food createFood() {
        return new Bread();
    }

    @Override
    Vehicle createVehicle() {
        return new Car();
    }

    @Override
    Weapon createWeapon() {
        return new AK47();
    }
}
